<div class="header">
    <img src="<?php echo base_url()."style/images/logoTmp1.png";?>" title=""/>
    <?php
    $newR ="";
    $listR ="";
    $messages ="";
    $municipalities ="";
    switch($this->uri->segment(4)) {
        case "newrepresentative":
            $newR = "selected";
            break;
        case "listrepresentatives":
            $listR = "selected";
            break;
        case "messages":
        case "listmessages":
            $messages = "selected";
            break;
        case "municipalities":
        case "listmunicipalities":
            $municipalities = "selected";
            break;
        default:
            $newR ="selected";
            $listR ="";
            $messages ="";
            $municipalities = "";
            break;
    };
    ?>
    <div class="admin_menu">
        <ul>
            <li><a class="<?php echo $newR;?>" href="<?php echo base_url()?>mk/admin/representatives/newrepresentative">Add Representative</a></li>
            <li><a class="<?php echo $listR;?>" href="<?php echo base_url()?>mk/admin/representatives/listrepresentatives">Representatives</a></li>
            <li><a class="<?php echo $messages;?>" href="<?php echo base_url()?>mk/admin/messages/listmessages/all">Messages</a></li>
            <li><a class="<?php echo $municipalities;?>" href="<?php echo base_url()?>mk/admin/municipalities/listmunicipalities">Municipalities</a></li>
        </ul>
        <div class="cleardiv"></div>
    </div>
    <div class="cleardiv"></div>
</div>

